package cn.duhengkui.national.valuelist.example.entity;

import cn.duhengkui.national.valuelist.core.entity.BaseEntity;
import cn.duhengkui.national.valuelist.annotation.Entity;
import cn.duhengkui.national.valuelist.annotation.EntityType;
import cn.duhengkui.national.valuelist.annotation.Column;

@Entity(name="bookinfo", type=EntityType.TABLE)
public class Bookinfo extends BaseEntity {

	/** 
	 * @Fields serialVersionUID  
	 */
	private static final long serialVersionUID = 2108196534557367568L;

	@Column(name="book_id", isPK=true, isNotNull=true, length=32, precision=32, scale=0)
	private java.lang.String bookId = "";

	@Column(name="book_name", isPK=false, isNotNull=false, length=50, precision=50, scale=0)
	private java.lang.String bookName = "";

	@Column(name="book_author", isPK=false, isNotNull=false, length=50, precision=50, scale=0)
	private java.lang.String bookAuthor = "";

	@Column(name="book_price", isPK=false, isNotNull=false, length=22, precision=22, scale=0)
	private java.lang.Double bookPrice;

	@Column(name="wf_activity_process_id", isPK=false, isNotNull=false, length=32, precision=32, scale=0)
	private java.lang.String wfActivityProcessId = "";

	public java.lang.String getBookId() {
		return bookId;
	}
	public void setBookId(java.lang.String bookId) {
		this.bookId = bookId;
	}
	public java.lang.String getBookName() {
		return bookName;
	}
	public void setBookName(java.lang.String bookName) {
		this.bookName = bookName;
	}
	public java.lang.String getBookAuthor() {
		return bookAuthor;
	}
	public void setBookAuthor(java.lang.String bookAuthor) {
		this.bookAuthor = bookAuthor;
	}
	public java.lang.Double getBookPrice() {
		return bookPrice;
	}
	public void setBookPrice(java.lang.Double bookPrice) {
		this.bookPrice = bookPrice;
	}
	public java.lang.String getWfActivityProcessId() {
		return wfActivityProcessId;
	}
	public void setWfActivityProcessId(java.lang.String wfActivityProcessId) {
		this.wfActivityProcessId = wfActivityProcessId;
	}
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((bookId == null) ? 0 : bookId.hashCode());
		return result;
	}
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Bookinfo other = (Bookinfo) obj;
		if (bookId == null) {
			if (other.bookId != null)
				return false;
		} else if (!bookId.equals(other.bookId)) {
			return false;
		}
		return true;
	}
}